function showFloat(){
	$("#diagPop").show();
	$("#diagPopAlpha").show();
}

function closeFloat(){
	$("#diagPop").hide();
	$("#diagPopAlpha").hide();
}

//验证订单是否已经支付,成功支付则跳转到
function doCheckSuccess(info,jump){
	var url =  "/st_f/TransactionsJason";
	$.get(url,{info:info},function(data){
		if(data!=null&&data.id>0){
			window.location.href = jump;
		}
	}, "json");
}


///////
//充值验证
$(function(){
	$.validator.setDefaults({submitHandler:function(form){showFloat();form.submit();}});
	$("#rechargeForm").validate({
		onkeyup: false, 
		invalidHandler: function(e, validator) {},
		rules: {
			p3_Amt: {required: true, money:true}
		},
 		errorPlacement: function(error, element) {
 			$("#"+element.attr("name")+"PreInfo").hide();
 			$("#"+element.attr("name")+"Info").html(error.attr("class","zf-point"));
 		},
 		success: function(label) {
			label.html("&nbsp;").addClass("mima");
		},
 		messages:{
 			p3_Amt: {required:"请填写金额",money:"请填写正确的金额"}
 		}
	});
});